<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>autofocus</title>
</head>
<body>
<!--
 autofocus 属性
 规定在页面加载的时候，域自动获得标签
 适用于所有input标签

 -->

<form action="">
    <input type="text" name="text" autofocus>
    <input type="submit" value="提交">
</form>
</body>
</html>